﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Demo.CommonBase.Logging;
using System.Reflection;
using Demo.CommonBase.Exceptions;
using Demo.Services.Contracts.DTO.Infos;
using Demo.Services.Integration.DAO.Impl;

namespace Demo.Services.Services.Impl.DomainObjects
{
    public class DemoDomainObject
    {

        public IList<ContactInfo> GetContacts()
        {
            IList<ContactInfo> result=null;
            DemoDAO demodao;
            try
            {
                //Logger.Info();
                demodao = new DemoDAO();
                result = demodao.GetContacts();
            }

            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new UnhandledException(MethodInfo.GetCurrentMethod(), ex);
            }
            return result;
        }
        
        

    }
}
